package com.taxi.action;

import java.util.List;

import com.taxi.bean.TipoDocDTO;
import com.taxi.service.PaqueteBusinessDelegate;
import com.taxi.service.TipoDocService;
import com.opensymphony.xwork2.ActionSupport;

public class TipoDocAction extends ActionSupport {

private static final long serialVersionUID = 1L;
	
	private TipoDocService service = PaqueteBusinessDelegate.getTipoDocService();
	private boolean success;
	private List<TipoDocDTO> lstTipoDoc;
	
	public String cargarTiposDoc(){
		
		try {
			lstTipoDoc = service.cargarTipoDoc();
			setSuccess(true);	
		} catch (Exception e) {
			setSuccess(false);
		}
		
		return SUCCESS;
		
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public List<TipoDocDTO> getLstTipoDoc() {
		return lstTipoDoc;
	}

	public void setLstTipoDoc(List<TipoDocDTO> lstTipoDoc) {
		this.lstTipoDoc = lstTipoDoc;
	}
	
}
